package tax_return;

import junit.framework.Assert;
import junit.framework.TestCase;

public class TaxTest extends TestCase {

	public void test1(){
		TaxReturn t = new TaxReturn(20000, TaxReturn.SINGLE);
		double tax = t.getTax();
		Assert.assertEquals(2000, tax, 1e-14);
	}
	
	public void test2(){
		TaxReturn t = new TaxReturn(40000, TaxReturn.SINGLE);
		double tax = t.getTax();
		Assert.assertEquals(5200, tax, 1e-14);
	}
	
	public void test3(){
		TaxReturn t = new TaxReturn(40000, TaxReturn.MARRIED);
		double tax = t.getTax();
		Assert.assertEquals(4000, tax, 1e-14);
	}
	
	public void test4(){
		TaxReturn t = new TaxReturn(100000, TaxReturn.MARRIED);
		double tax = t.getTax();
		Assert.assertEquals(15400, tax, 1e-14);
	}
}
